package com.aier.entrance.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.aier.common.common.Constant;
import com.aier.school.entity.School;

/**
 * EntranceDevice entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "entrance_device", catalog = "abc", uniqueConstraints = @UniqueConstraint(columnNames = "sn"))
public class EntranceDevice implements java.io.Serializable {

    // Fields

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private Long eid;
    private String sn;
    private Short state;
    private Integer sid;
    private String des;
    private Long vdid;
    private Short vdstate;
    private Short supplier;
    private Integer pid;
    private Short poxystate;//代理状态
    private String state_str;//门径启用状态
    private String school_name;//学校名
    private String vdstate_str;//门禁拍照状态
    private String video_sn;//视频编码
    private String supplier_str;//设备厂家
    
    

    private VideoDevice vd;
    
    private School s;
    
    // Constructors

    /** default constructor */
    public EntranceDevice() {
    }

    /** full constructor */
    public EntranceDevice(String sn, Short state, Integer sid) {
        this.sn = sn;
        this.state = state;
        this.sid = sid;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "eid", unique = true, nullable = false)
    public Long getEid() {
        return this.eid;
    }

    public void setEid(Long eid) {
        this.eid = eid;
    }

    @Column(name = "sn", unique = true, nullable = false, length = Constant.num_20)
    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    @Column(name = "state", nullable = false)
    public Short getState() {
        return this.state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    @Column(name = "sid", nullable = false)
    public Integer getSid() {
        return this.sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public Long getVdid() {
        return vdid;
    }

    public void setVdid(Long vdid) {
        this.vdid = vdid;
    }

    public Short getVdstate() {
        return vdstate;
    }

    public void setVdstate(Short vdstate) {
        this.vdstate = vdstate;
    }

    public Short getSupplier() {
        return supplier;
    }

    public void setSupplier(Short supplier) {
        this.supplier = supplier;
    }

    public VideoDevice getVd() {
        return vd;
    }

    public void setVd(VideoDevice vd) {
        this.vd = vd;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Short getPoxystate() {
        return poxystate;
    }

    public void setPoxystate(Short poxystate) {
        this.poxystate = poxystate;
    }

    public School getS() {
        return s;
    }

    public void setS(School s) {
        this.s = s;
    }



    public String getSchool_name() {
        return school_name;
    }

    public void setSchool_name(String school_name) {
        this.school_name = school_name;
    }

    public String getVdstate_str() {
        return vdstate_str;
    }

    public void setVdstate_str(String vdstate_str) {
        this.vdstate_str = vdstate_str;
    }

    public String getVideo_sn() {
        return video_sn;
    }

    public void setVideo_sn(String video_sn) {
        this.video_sn = video_sn;
    }

    public String getSupplier_str() {
        return supplier_str;
    }

    public void setSupplier_str(String supplier_str) {
        this.supplier_str = supplier_str;
    }

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    public String getState_str() {
        return state_str;
    }

    public void setState_str(String state_str) {
        this.state_str = state_str;
    }

    
}